home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2001 May / SGI IRIX Base Documentation 2001 May.iso / usr / share / catman / u_man / cat3 / Tk / getrootcrd.z / getrootcrd
Encoding:
Text File  |  1998-10-30  |  2.2 KB  |  67 lines

  1.  
  2.  
  3.  
  4. TTTTkkkk____GGGGeeeettttRRRRoooooooottttCCCCoooooooorrrrddddssss((((3333TTTTkkkk))))                                    TTTTkkkk____GGGGeeeettttRRRRoooooooottttCCCCoooooooorrrrddddssss((((3333TTTTkkkk))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      Tk_GetRootCoords - Compute root-window coordinates of window
  10.  
  11. SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  12.      ####iiiinnnncccclllluuuuddddeeee <<<<ttttkkkk....hhhh>>>>
  13.  
  14.      TTTTkkkk____GGGGeeeettttRRRRoooooooottttCCCCoooooooorrrrddddssss(_t_k_w_i_n, _x_P_t_r, _y_P_t_r)
  15.  
  16. AAAARRRRGGGGUUUUMMMMEEEENNNNTTTTSSSS
  17.      Tk_Window   _t_k_w_i_n   (in)      Token for window.
  18.  
  19.      int         *_x_P_t_r   (out)     Pointer to location in which to store
  20.                                    root-window x-coordinate corresponding to
  21.                                    left edge of _t_k_w_i_n's border.
  22.  
  23.      int         *_y_P_t_r   (out)     Pointer to location in which to store
  24.                                    root-window y-coordinate corresponding to
  25.                                    top edge of _t_k_w_i_n's border.
  26.  
  27.  
  28. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  29.      This procedure scans through the structural information maintained by Tk
  30.      to compute the root-window coordinates corresponding to the upper-left
  31.      corner of _t_k_w_i_n's border.  If _t_k_w_i_n has no border, then TTTTkkkk____GGGGeeeettttRRRRoooooooottttCCCCoooooooorrrrddddssss
  32.      returns the root-window coordinates corresponding to location (0,0) in
  33.      _t_k_w_i_n.  TTTTkkkk____GGGGeeeettttRRRRoooooooottttCCCCoooooooorrrrddddssss is relatively efficient, since it doesn't have
  34.      to communicate with the X server.
  35.  
  36.  
  37. KKKKEEEEYYYYWWWWOOOORRRRDDDDSSSS
  38.      coordinates, root window
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.